﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DKT.WeiXinAPI
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class EventAttribute: Attribute
    {

        public EventAttribute()
        {

        }


        public EventAttribute(MsgType msgType,EventType eventType)
        {
            MsgType = msgType;
            EventType = eventType;
        }

        /// <summary>
        /// 消息类型
        /// </summary>
        public MsgType MsgType { get; set; }

        /// <summary>
        /// 事件类型
        /// </summary>
        public EventType EventType { get; set; }

    }
}
